package com.zq.assistant.ui.widget.recyclerview.drag;

import android.support.v7.widget.RecyclerView;

/**定义RecycleView的Adapter和SimpleItemTouchHelperCallback直接交互的接口方法
 * Created by zhangqiang on 17-3-23.
 */

public interface ItemTouchHelperAdapter {

    //数据交换
    void onItemMove(RecyclerView.ViewHolder source, RecyclerView.ViewHolder target);

    //数据删除
    void onItemDismiss(RecyclerView.ViewHolder source);

    //drag或者swipe选中
    void onItemSelect(RecyclerView.ViewHolder source);

    //状态清除
    void onItemClear(RecyclerView.ViewHolder source);

    //是否可以拖动
    boolean canItemDrag(RecyclerView.ViewHolder source);
}
